{% extends "basis.html" %}


{% block content %}

<form action="{{flickr_search_uri}}" method="post">{% csrf_token %}
 <p>Text Search on Flickr:<br><input name="searchstring" type="text" size="30"></p>
 <input type="submit" value="Find images"/>
</form>


{% for key,value in urls.items %}
<div>
<form action="{{set_image_uri}}" method="post">{% csrf_token %}
<a href="{{value}}" target="_blank"><img alt="" src="{{key}}"/></a>
<input type="hidden" name="selectedImage" value="{{key}}">
<input type="hidden" name="backlink" value="{{value}}">
<input type="submit" value="Use this picture"/>
</form>
</div>
{% endfor %}


{% endblock %}